package entity;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * @ClassName:
 * @author:
 * @Description:
 * @Date
 **/
@Data
@Document(collection = "user")
public class User {
    @Id
    private ObjectId id;
    @Field("userId")
    private String userId;
    private String username;
}
